home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960715-19961006 / 000130_news@columbia.edu _Fri Aug 2 10:43:06 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: news@columbia.edu
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id KAA13742 for <kermit.misc@watsun.cc.columbia.edu>; Fri, 2 Aug 1996 10:43:06 -0400 (EDT)
  3. Received: (from news@localhost) by newsmaster.cc.columbia.edu (8.7.5/8.7.3) id KAA05533 for kermit.misc@watsun; Fri, 2 Aug 1996 10:43:05 -0400 (EDT)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: \fconvert, ask, and K95/C-Kermit
  8. Date: 2 Aug 1996 14:42:46 GMT
  9. Organization: Columbia University
  10. Lines: 54
  11. Message-ID: <4tt456$eip@apakabar.cc.columbia.edu>
  12. References: <1996Aug1.132834.144225@forest>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <1996Aug1.132834.144225@forest>,
  16. Paul Coen <pcoen@forest.drew.edu> wrote:
  17. : I've been messing with \fcontents in order to avoid the C-Kermit/K95 slash
  18. : problem with directory names, and it's 99.9% working the way I'd want.
  19. : Except . . .
  20. : assuming there was an ask line to assign a value to \%n, and the user 
  21. : typed in C:\DOCS\TEST.TXT, the following line:
  22. : ask \%a {\fcontents(\%n) already exists -- Do you wish to overwrite it?
  23. :     (Y,N,END): }
  24. : produces:
  25. : C:DSTEST.TXT already exists -- Do you wish to overwrite it? (Y,N,END):
  26. Don't you hate it that backslash is Kermit's command-language distinguished
  27. character AND the DOS directory separator?  It makes life so much more
  28. interesting.
  29.  
  30. : As far as I can tell, other character string functions, such as \freverse,
  31. : work the way I'd expect in this situation -- if I used \freverse, I'd end
  32. : up with TXT.TSETSD:C on the screen.  
  33. : I tried it without the {}, and that didn't make a difference.
  34. : I can't find anything odd about ASK prompts in Using C-Kermit, or about
  35. : \fcontents.  Is the prompt for ask a special case where I shouldn't be
  36. : expecting \fconvert to work?  It doesn't in C-Kermit for OS/2 either.
  37. :
  38. You're right:
  39.  
  40.   echo OK to overwrite \fcontents(\%n)?
  41.  
  42. works OK, but:
  43.  
  44.   ask \%a OK to overwrite \fcontents(\%n)?
  45.  
  46. behaves differently.  This will need fixing.  Thanks for pointing out the
  47. problem.  In the meantime, one workaround would be:
  48.  
  49.   echo \fcontents(\%n) already exists.
  50.   ask \%a {Do you wish to overwrite it? (Y,N,END): }
  51.  
  52. Another one, far less obvious one, is:
  53.  
  54.   ask \%a {OK to overwrite \freplace(\fcontents(\%n),\\,\\\\)? }
  55.  
  56. Meanwhile, let's hear it for whoever invented the DOS 2.0 file system and
  57. whimsically decided it would be just like the UNIX one, except with the
  58. slashes turned around :-)
  59.  
  60. - Frank